<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/includeHeader.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ page import="com.kylin.module.shop.orm.*,
                 com.kylin.common.util.*,
				 com.kylin.common.dict.orm.Dict,
                 com.kylin.common.paginate.DisplayPage,
			     com.kylin.module.user.orm.*"%>
			     
<%@ include file="companyTop.jsp"%> 

<mytag:MyActionMsg />
<table  cellpadding="0" cellspacing="0" class="comp04" align="center">
   
  <tr>
    <td colspan="2" class="comp0401">
   <%
       String type= request.getParameter("type");
       if(type != null && Content.TYPE_BUY.equals(new Short(type)) ){
    %>
         	<bean:message key="company.79" />
    <%
       }else if(type != null && Content.TYPE_SELL.equals(new Short(type)) ){
    %>
        	<bean:message key="company.78" />
    <%
       }else{
           out.println("贸易信息");
       }
    %>       
    </td>
  </tr>
<%
DisplayPage dispage = null;
    if(request.getAttribute(Constants.KEY_REQUEST_RESULT) instanceof DisplayPage){
        dispage = (DisplayPage)request.getAttribute(Constants.KEY_REQUEST_RESULT);
        if(dispage.getList() != null)
        for(int i=0;i<dispage.getList().size();i++){
            Content obj = (Content)dispage.getList().get(i);
            if(obj != null){
            if(i%2 == 0)
                out.println("<tr>");
%>
    <td width="50%" valign="top" class="comp04tdin">
	    <span class="infot"> <%=obj.getTitle() %> </span>
	    <br><%=obj.getContent() %>
		<br><bean:message key="base.63" />数量：<%=obj.getQuantity() %>
		<br><bean:message key="leads.06" />包装：<%=obj.getPpackage() %>
		<br><bean:message key="leads.07" />价格/术语条件：<%=obj.getPrice() %> <%=obj.getCurrency() %>
		<table width="100%">
		  <form action="/module/shop/_nodeco/advisorys.jsp?companyId=<%=com.getId() %>" 
		     target="_blank" method="post">
		     <input type="hidden" name="title" value="关于 <%=obj.getTitle() %>">
		  <tr>
		     <td width="60%"><bean:message key="base.68" />：<%=obj.getDuedate() %></td>
		     <td width="40%">
		      <input type="submit" value="<bean:message key="company.80" />"></td>
		  </tr>
		 </form>
	    </table><br>
	</td>
<%
            if(i%2==1)
                out.println("</tr>");
            }
        }
    }
%>
  </table>
 <font color=red> 还缺少 分野工具条</font>
  
